package com.example.springbootwebsocke.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebSocketConfg {
    @Bean
    //注入这个 ServerEndpointExporter的bean对象 自定注册的@ServerEndpoint
    //的bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }


}
